package com.ethink.mdm.api;

import com.ethink.mdm.api.info.SupplierInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * supplier Facade接口
 *
 * @author default
 * @date 2022-10-31
 */
@FeignClient(name = "ethink-mdm-service", path = "mdm-service/facade/v1/supplier", contextId = "supplierFacade")
public interface SupplierFacade {

    @PostMapping("/listSupplier")
    @ResponseBody
    List<SupplierInfo> listSupplier();

    @PostMapping("/listSupplierByCodeList")
    @ResponseBody
    List<SupplierInfo> listSupplierByCodeList(@RequestBody List<String> codeList);
}